<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/

Route::group(['middleware'=>['check.login']],function ($route) {
    //获取登录用户信息
    Route::post('/user/info','UserController@userInfo');
    //退出系统
    Route::get('/logout','UserController@logout');
});

//登陆系统
Route::post('/login','UserController@login');
//刷新
Route::get('/refresh','UserController@refresh');
//check
Route::get('/check','HomeController@check');